package com.zlf.demo.controller;


import com.zlf.demo.response.SelectUsersInfoResponseVo;
import com.zlf.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户信息表 前端控制器
 * </p>
 *
 * @author zhanglongfei
 * @since 2021-01-15
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public List<SelectUsersInfoResponseVo> list() {
        return userService.listUsersByIds();
    }

}
